package com.CalendarDemo;

import java.util.Calendar;

public class CalendarTest {
    public static void main(String[] args) {
        // 判断2050年3月1日是否为疯狂星期四
        Calendar c=Calendar.getInstance();

        c.set(2050,2,1);

        char[] week={' ','日','一','二','三','四','五','六'};

        char weekIndex=week[c.get(Calendar.DAY_OF_WEEK)];
        System.out.println(weekIndex);
    }
}
